/******************************************************************************************************
Copyright (C) 2012 Mestrelab Research S.L. All rights reserved.

This file is part of the MNova scripting toolkit.

Authorized users of MNova Software may use this file freely, but this file is provided AS IS
with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE.
*****************************************************************************************************/
function yModelTest()
{
	var yModel = new GraphYModel(GraphYModel.emConcentration,1,2)
	print(yModel)
	yModel.f1From = 1.2
	print(yModel.f1From)
}

function fitModelTest()
{
	//var fit = new FitModel(GraphFitModel.FirstOrder)
	//print(fit)

	var customParams = new Object();
	customParams.A=1
	customParams.B=0
	var customFit = new GraphFitModel('A*x+B',customParams)
	print(customFit)
}

function responseFactorTest()
{
	var funcObj = new Object()
	funcObj.formula =  "y*M/k"
	funcObj.params = {M:10,k:3}
	var rFactor = new GraphResponseFactor(GraphResponseFactor.Formula, funcObj)
//	var rFactor = new ResponseFactor(ResponseFactor.Concentration,2.0)
//	rFactor.units = "µM"
//	var rFactor = new ResponseFactor(ResponseFactor.PULCON,10.0)
	print(rFactor)
}